﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Xml;

namespace EAISimulatedWebService
{
    /// <summary>
    /// Summary description for AURAService
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class AURAService : System.Web.Services.WebService
    {
        [WebMethod]
        public XmlDocument CheckRule(XmlDocument sourceXml)
        {
            var xmldoc = new XmlDocument();
            xmldoc.LoadXml("<ns0:ESBEnvelope xmlns:ns0=\"http://MetLifeEAI.EAISchema\"><ESBHeader><ESBHdVer>ESBHdVer_0</ESBHdVer><SrvDate>2012-10-14</SrvDate><SrvTime>13:20:00</SrvTime><SenderID>SenderID_0</SenderID><ReceiverID>ReceiverID_0</ReceiverID><SrvOpName>SrvOpName_0</SrvOpName><SrvOpVer>SrvOpVer_0</SrvOpVer><MsgID>MsgID_0</MsgID><CorrID>CorrID_0</CorrID><ESBRspCode>ESBRspCode_0</ESBRspCode><ESBRspDec>ESBRspDec_0</ESBRspDec><ResField1>ResField1_0</ResField1><ResField2>ResField2_0</ResField2><ResField3>ResField3_0</ResField3><ResField4>ResField4_0</ResField4><ResField5>ResField5_0</ResField5></ESBHeader><MsgBody><XML><AURATX><APPNum>APPNum_0</APPNum><Chdrnum>Chdrnum_0</Chdrnum><ApplicationDecision>ApplicationDecision_0</ApplicationDecision><Insureds><Insured><UniqueID>UniqueID_0</UniqueID><Name>Name_0</Name><AcuRiskAmount><RAType>RAType_0</RAType><RAValue>RAValue_0</RAValue></AcuRiskAmount><OverallDecisions><Decision><Product>Product_0</Product><UnderwritingDecision><DecisionCode>DecisionCode_0</DecisionCode><ReasonCode>ReasonCode_0</ReasonCode><ReasonDescription>ReasonDescription_0</ReasonDescription></UnderwritingDecision></Decision><Decision><Product>Product_0</Product><UnderwritingDecision><DecisionCode>DecisionCode_0</DecisionCode><ReasonCode>ReasonCode_0</ReasonCode><ReasonDescription>ReasonDescription_0</ReasonDescription></UnderwritingDecision></Decision><Decision><Product>Product_0</Product><UnderwritingDecision><DecisionCode>DecisionCode_0</DecisionCode><ReasonCode>ReasonCode_0</ReasonCode><ReasonDescription>ReasonDescription_0</ReasonDescription></UnderwritingDecision></Decision></OverallDecisions></Insured></Insureds><ReturnCode>ReturnCode_0</ReturnCode><ReturnDesc>ReturnDesc_0</ReturnDesc></AURATX></XML></MsgBody></ns0:ESBEnvelope>");
            return xmldoc;
        }
    }
}
